import platform = require('../../../../../platform/common/baseCommon');
import appClient = require('../../../../../platform/client/appClient');
import noneBorderMainForm = require('../../../../../platform/client/mainForm/noneborder/noneborderMainForm');

/** 应用程序配置 */
export let defaultObject = new appClient.clientApplication();

let mainForm = new noneBorderMainForm.noneBorderMainForm();

syncRequire('./platform/client/controls');
mainForm.navPages = [
    // {
    //     $type: "platform.client.tabPage",
    //     title: "智能报表",
    //     icon: "cloud",
    //     iconClass: "glyphicon glyphicon-cloud",
    //     view: new platform.lazyFactory("project/test/config/client/fsgsweb/report/xkzzsfpqyfxConfig", "defaultObject")
    // }
    {
        $type: "platform.client.tabPage",
        id: "echartTest",
        title: "EChart测试",
        icon: "home",
        iconClass: "glyphicon glyphicon-home",
        view: new platform.lazyFactory("project/test/config/client/smartReportApp/echartTestConfig", "defaultObject"),
        viewStack: new appClient.viewStack()
    }
];
platform.fetchAddonProtoType(mainForm);
defaultObject.mainForm = mainForm;

defaultObject.serverLogger = new appClient.remoteFactory(platform.baseLogger, "remoteCall", "fileLogService");